import { createRouter, createWebHistory,RouteRecordRaw} from "vue-router";


const routes:Array<RouteRecordRaw>=([
    {
        path:'/',
        name:'Home',
        component:()=>import('../components/HelloWorld.vue')
    },
    {
        path:'/AddInvest',
        name:'AddInvest',
        component:()=>import('../components/AddInvest.vue')
    },
    {
        path:'/ShowInvest',
        name:'ShowInvest',
        component:()=>import('../components/ShowInvest.vue')
    },
    {
        path:'/UpdateInvest/:Iid',
        name:'UpdateInvest',
        component:()=>import('../components/UpdateInvest.vue')
    },
])


const Router=createRouter(
    {
        history:createWebHistory(),
        routes
    }
)
export default Router